package com.twotigers.tenthpower.qa.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.twotigers.tenthpower.qa.dao.PlDao;
import com.twotigers.tenthpower.qa.entity.PlEntity;
import com.twotigers.tenthpower.qa.service.PlService;


@Service("plService")
public class PlServiceImpl extends ServiceImpl<PlDao, PlEntity> implements PlService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PlEntity> page = this.page(
                new Query<PlEntity>().getPage(params),
                new QueryWrapper<PlEntity>()
        );

        return new PageUtils(page);
    }

}